package net.esj.basic.pojo;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Updater implements Serializable{

	private Set<String> properties = new HashSet<String>();
	
	public Updater notify(String... keys){
		for(String key:keys){
			properties.add(key);
		}
		return this;
	}

	public Set<String> getProperties() {
		return properties;
	}
	
	public boolean hasProperty(){
		return !properties.isEmpty();
	}
}
